<!DOCTYPE html>

<html>



<head>

    <meta charset="utf-8"/>

    <title>订单管理</title>

    <link rel="stylesheet" href="__PUBLIC__/Leader/css/bootstrap.css">

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/index.css"/>

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/bootstrap-datetimepicker.css"/>    

    <style type="text/css">

        .order-list a {

            position: relative;

        }



        .order-list span {

            float: right;

            margin-right: 20px;

        }



        .trhead td {

            background: #efefef;

            text-align: center

        }



        .trbody td {

            text-align: center;

            vertical-align: top;

            border-left: 1px solid #f2f2f2;

            overflow: hidden;

            font-size: 12px;

        }



        .trorder {

            background: #f8f8f8;

            border: 1px solid #f2f2f2;

            text-align: left;

        }



        .ops {

            border-right: 1px solid #f2f2f2;

            text-align: center;

        }



        .pagination ul {

            display: inline-block;

            margin-left: 0;

            margin-bottom: 0;

            -webkit-border-radius: 3px;

            -moz-border-radius: 3px;

            border-radius: 3px;

            font-size:0;

        }



        .pagination ul > li {

            display: inline-block;

            font-size:14px;

            border:1px solid #ddd;

        }

        .pagination ul > *:not(:first-child){

            margin-left:-1px;

        }

        .pagination ul > span{

            border:1px solid #ddd;

        }

        .pagination ul > li > a, .pagination ul > span {

            /*float: left;*/

            display:inline-block;

            padding: 0 14px;

            line-height: 38px;

            text-decoration: none;

            background-color: #ffffff;

            font-size:14px;

        }

        .pagination ul > li:last-child{

            margin-left:15px;

            border:none;

        }

        .pagination ul > li:last-child #pages{

            margin:0 6px;

        }

        thead tr th {

            text-align: center;

        }

    </style>

</head>

<body>

<include file="Index/head"/>

<div class="wrapper main-wrapper wrapper-content ">

   

    <!--主要内容-->

    <div class="page-content" style="display: block;">

        <div class="page-heading" style="position:relative;">

            <h2>订单详情</h2>

        </div>
        <div class="page-body">
                    <form action="" method="post" class="form-horizontal table-search" role="form">
                    <input type="hidden" name="id" value="{$id}">
                        <div class="page-toolbar row m-b-sm m-t-sm">
                            <div class="col-sm-12 pull-left">
                                <div class="input-group col-sm-12">
                                    <input type="text" name="wtime" id="starttime" placeholder="选择起始时间" class="input-sm  col-sm-2" readonly="readonly" style="border:1px solid #eee;"/>
                                    <input type="text" name="ntime" id="endtime" placeholder="选择终止时间" class="input-sm  col-sm-2" readonly="readonly" style="border:1px solid #eee;"/>
                                   
                                   
                                    <span class="input-group-btn pull-left">
                                        <button class="btn btn-sm btn-primary" type="submit"> 搜索</button>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
        <div class="panel panel-default" style="margin-top:20px;">
                    <div class="panel-body">
                        <ul class="fenxilist clearfix">
                            <li class="col-sm-3">
                                <div>订单笔数(笔)</div>
                                <div>{$bwcount?$bwcount:0}</div>

                            </li>
                            <li class="col-sm-3">
                                <div>订单金额(元)</div>
                                <div>￥{$bwcount2?$bwcount2:0}</div>

                            </li>
                            <li class="col-sm-3">
                                <div>已完成笔数</div>
                                <div>{$bwcount3?$bwcount3:0}</div>

                            </li>
                            <li class="col-sm-3">
                                <div>已完成金额</div>
                                <div>￥{$bwcount4?$bwcount4:0}</div>

                            </li>
                        </ul>
                    </div>
                </div>



        <div class="panel panel-default" style="margin-top: 20px;">

            <div class="panel-body" style="text-align: center;">

                <table class="table table-responsive">
                <thead>
                    <tr style="background:#f9f9f9;">
                        <th>#</th>
                        <th>司机</th>
                        <th>乘客电话</th>
                        <th>人数</th>
                        <th>出发地</th>
                        <th>目的地</th>
                        <th>价格</th>
                        <!-- <th>订单类型</th> -->
                        <th>支付状态</th>
                        <th>下单时间</th>
                        <th>发车时间</th>
                        <th>订单状态</th>
                        <!-- <th style="width: 60px;"></th> -->
                        <!-- <th>操作</th> -->
                    </tr>
                </thead>
                <tbody>
                    <volist name="list" id="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td width='60px;'>{:get_usertel($vo['openid'])}</present></td>
                            <td width='100px;'>{$vo.mobile}</td>
                            <td width='50px;'>{$vo.num}</td>
                            <td width='100px;'><a href='javascript:void(0)' onclick="kcshow('{$vo.start_x}', 1)">{$vo.start}</a>
                            </td>
                            <td width='100px;'><a href='javascript:void(0)'
                              onclick="kcshow('{$vo.end_x}', 2)">{$vo.end}</a></td>
                              <td>{$vo.price}/人</td>
                              <!-- <td>{$vo.fs}</td> -->

                              <td>{$vo['pay_statu']}
                               
                                </if>




                              </td>

                            <td>{$vo['addtime']|date='Y-m-d H:i',###}</td>
                            <td>{$vo['starttime']}</td>

                            <td>

                      

                              <if condition="$vo['status'] eq '0'">
                                  创建订单
                              <elseif condition="$vo['status'] eq '1'"/>
                                  发车
                              <elseif condition="$vo['status'] eq '2'"/>
                              到达固定乘车点
                              <elseif condition="$vo['status'] eq '3'"/>
                              接到乘客
                              <elseif condition="$vo['status'] eq '4'"/>
                              到达终点站
                              <elseif condition="$vo['status'] eq '5'"/>
                              确认订单
                              <elseif condition="$vo['status'] eq '6'"/>
                              订单完成
                              </if>


                            </td>
                         <!--  <td>
                            <a href='javascript:void(0)' onclick="bcshow({$vo['id']})">
                            <i class="glyphicon glyphicon-eye-open"></i></a>
                            
                            <if condition="$order_cwstatus eq 2">
                                <a href='javascript:void(0)' onclick="table1({$vo['id']})"><i class="glyphicon glyphicon-pencil"></i></a>
                            </if> 

                            <a onclick="return confirm('正在删除，请确认')" href="__CONTROLLER__/del/id/{$vo.id}"><i class="glyphicon glyphicon-remove-sign"></i>
                             </a>
                             <if condition="$vo['status'] neq 6">
                             <a href="javascript:void(0)" onclick="bcshow_table({$vo['id']})"><i class="glyphicon glyphicon-pencil"></i></a>
                             </if>

                                </td> -->
                            </tr>
                           
                        </volist>
                    
                    </tbody>
                </table>
				
                {$page}

            </div>

        </div>

    </div>

</div>

<script src="__PUBLIC__/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>

<script src="__PUBLIC__/layer/layer.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/Leader/js/bootstrap-datetimepicker.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript">
    $(function () {
        var myDate = new Date();
        $('#starttime').datetimepicker({
            minView: 0, //选择日期后，不会再跳转去选择时分秒
            language: 'zh-CN',
//            format: 'yyyy-mm-dd',
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: true,

        });
        $('#endtime').datetimepicker({
            minView: 0, //选择日期后，不会再跳转去选择时分秒
            language: 'zh-CN',
//            format: 'yyyy-mm-dd',
            todayBtn: 1,
            autoclose: 1,
            todayHighlight: true,
        });
    })
</script>


</body>
</html>